package system.model.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 米泽鹏
 * @since 2022-3-12 下午 2:33
 */
@Data
public class UpdateBusinessCodeValidRequest {

	@NotBlank(message = "业务编码不能为空")
	private String codeType;

	@NotNull(message = "是否启用【valid】不能为空")
	@Min(value = 0, message = "是否启用【valid】只能为0或1")
	@Max(value = 1, message = "是否启用【valid】只能为0或1")
	private Integer valid;

}
